package com.atguigu;
interface Foo{
//    void foo();
    int foo(int x, int y);
}

public class Lambda {
    public static void main(String[] args) {
        /*Foo foo = () -> System.out.println("Hello LambdaExpress");
        foo.foo();*/

        Foo foo = (int x, int y) -> {
            int result= x * y;
            return result;
        };
        System.out.println(foo.foo(5, 10));
        System.out.println("Lambda expression");
    }
}
